< previous page page_501 next page >

Page 501
You can also use your mouse pointer to resize, minimize, or maximize any form. You can even resize individual columns and rows within a form. Figure 13.5 shows several of the ways you can alter the view of forms.
0501-01.jpg
Figure 13.5.
Altering the form views within 
SQL-VB5.
Creating and Editing SQL-VB5 Scripts
You can also use SQL-VB5 to create and edit SQL command scripts. For example, edit the SQLVB01.SQV script you tested earlier. First, load the script for editing by selecting File | Edit from the main menu. Locate and select the SQLVB01.SQV script. When you select the script, SQL-VB5 launches the Notepad editor and loads the selected SQL script.
Let's change the SQL script so that the first result set includes only authors whose AUID is less than 7. To do this, add the text WHERE AUID<7; to the first SELECT statement. Be sure to place the semicolon (;) at the end of the line. SQL-VB5 needs this character to indicate the end of an SQL statement. Also, let's comment out the rest of the view sets for now. You only want to see one result set in this test. To do this, add two slashes (//) to the start of all the other lines that contain SELECT statements. Be sure to place a space after the // comment sign. Your script should now resemble Listing 13.1.

 
< previous page page_501 next page >

If you like this book, buy it!